<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<!-- 注意：不要忘记引入"daterangebox.css" -->
	<link rel="stylesheet" type="text/css" href="${ctx}views/jquery/easyui/themes/default/daterangebox.css"/>
	<link type="text/css" rel="stylesheet" href="${ctx }views/commoncss/pure/grids-min.css" />
	<style type="text/css">
		.his-container{
			width:99%;
			height:500px;
			/*overflow-y: hidden;*/
			/*border: 1px solid red;*/
		}
		.his-title{
			font-size: 20px;
		}
		.his-tab-content{
			padding-left: 10px;
			overflow:hidden;
			/*padding-top: 5px;
			padding-right: 5px;
			padding-bottom: 5px;*/
		}
		.his-pure-g{
			padding: 5px 0;
			font-size: 16px;
		}
		.his-search-area{
			display: inline-table;
			padding: 5px 0;
			font-size: 16px;
		}
	</style>
	<script type="text/javascript">
        var pageParam = ${pageParam};
        //注：pageParam.ghMode --控制选项的显示与隐藏(true：显示，false :隐藏)
        pageParam['ghMode'] = true;
        function nameStyleFunc(){ //grid字段样式。
        	return "font-weight:bold;";
        }
    </script>
	<script type="text/javascript" src="${ctx}views/commonjs/moments/moment.min.js"></script>
	<!-- 时间范围选取的JS，别忘了引入css文件。 -->
	<script type="text/javascript" src="${ctx}views/jquery/easyui/plugins/jquery.daterangebox.js?t=<%=new java.util.Date().getTime()%>"></script>
	<script type="text/javascript" src="${ctx}views/jquery/easyui/locale/easyui-daterangebox-lang-zh_CN.js"></script>
	<!-- 引入datagrid-detailview官方扩展 -->
	<script type="text/javascript" src="${ctx}views/commonjs/easyui/datagrid-detailview.js"></script>
	<script type="text/javascript" src="${ctx}views/his/clinicManage/clinicRecord.js?t=<%=new java.util.Date().getTime()%>"></script>
</head>
<body>
	<div class="his-container">
		<div id="tt" class="easyui-tabs" 
			data-options="fit:true,tabPosition:'left',headerWidth:130,
				tabHeight:50,justified:false,narrow:false,pill:false"
			style="width:100%;height:100%">
			<div title="候诊区">
				<div class="his-tab-content">
					<table class="easyui-datagrid"
						style="height:'100%';width:'100%';"
						data-options="url:'${ctx}clinicRegInfo/init.do',fitColumns:true,
							singleSelect:true,title:'候诊区患者信息',loadMsg:'数据加载中...',
							rownumbers:true,pageNumber:1,pageSize:10,
							pageList:[10],toolbar:'#wait_diagnose'">
						<thead>
							<tr>
								<th data-options="field:'XH',width:0,hidden:'true'">序号</th>
								<th data-options="field:'CLINIC_REGNUM',width:0,hidden:'true'">门诊登记号</th>
								<th data-options="field:'HOSPITAL_NUM',width:0,hidden:'true'">医院编号</th>
								<th data-options="field:'DEPNUM',width:0,hidden:'true'">科室编号</th>
								
								<th data-options="field:'CLINICNUM',width:'9%',align:'center'">门诊号</th>
								<th data-options="field:'NAME',width:'9%',align:'center'
					            	,styler:nameStyleFunc">姓名</th>
								<th data-options="field:'SEX',width:'4%',align:'center'">性别</th>
								<th data-options="field:'AGE',width:'12%',align:'center'">年龄</th>
								<th data-options="field:'MARRIAGE',width:'5%',align:'center'">婚烟</th>
								<th data-options="field:'DEPNAME',width:'12%',align:'center'">门诊科室</th>
								<th data-options="field:'DOCTOR',width:'9%',align:'center'">门诊医生</th>
								<th data-options="field:'REGNAME',width:'8%',align:'center'">登记人</th>
								<th data-options="field:'REG_DATE',width:'12%',align:'center'">登记时间</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
			<div title="就诊区">
				<div class="his-tab-content">
					<table class="easyui-datagrid"
						style="height:'100%';width:'100%';"
						data-options="url:'${ctx}clinicRegInfo/init.do',fitColumns:true,
							singleSelect:true,title:'就诊区患者信息',loadMsg:'数据加载中...',
							rownumbers:true,pageNumber:1,pageSize:10,
							pageList:[10],toolbar:'#be_in_diagnose'">
						<thead>
							<tr>
								<th data-options="field:'XH',width:0,hidden:'true'">序号</th>
								<th data-options="field:'CLINIC_REGNUM',width:0,hidden:'true'">门诊登记号</th>
								<th data-options="field:'HOSPITAL_NUM',width:0,hidden:'true'">医院编号</th>
								<th data-options="field:'DEPNUM',width:0,hidden:'true'">科室编号</th>
								
								<th data-options="field:'CLINICNUM',width:'9%',align:'center'">门诊号</th>
								<th data-options="field:'NAME',width:'9%',align:'center'
					            	,styler:nameStyleFunc">姓名</th>
								<th data-options="field:'SEX',width:'4%',align:'center'">性别</th>
								<th data-options="field:'AGE',width:'12%',align:'center'">年龄</th>
								<th data-options="field:'MARRIAGE',width:'5%',align:'center'">婚烟</th>
								<th data-options="field:'DEPNAME',width:'12%',align:'center'">门诊科室</th>
								<th data-options="field:'DOCTOR',width:'9%',align:'center'">门诊医生</th>
								<th data-options="field:'REGNAME',width:'8%',align:'center'">登记人</th>
								<th data-options="field:'REG_DATE',width:'12%',align:'center'">登记时间</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
			<div title="历史记录">
				<div class="his-tab-content">
					<div class="easyui-panel" title="查询条件">
						<div class="pure-g his-pure-g">
							<div class="pure-u-1-5">&nbsp;</div>
							<div class="pure-u-2-5">
								<label style="color:blue;font-weight:bold;">一卡通： <!-- 
  							 --><input class="easyui-searchbox" id="id_cardNum" name="cardNum" 
  									data-options="searcher:cardDoSearch,prompt:'请刷卡.'" 
  									value="" style="width:135px"/>
							</div>
						</div>
						<%/* <div class="pure-g his-pure-g">
							<div class="pure-u-6-24">
								&nbsp;就诊时间: <input type="text" style="width:180px" id="dd" />
							</div>
							<div class="pure-u-4-24">
								患者姓名: <input class="easyui-textbox" style="width:100px;">
							</div>
							<div class="pure-u-4-24">
								科室: <select class="easyui-combobox" id="id_depNum" name="depNum" 
										style="width:130px"
										data-options="required:false,prompt:'请选择'"></select>
							</div>
							<div class="pure-u-3-24">
								<a id="btn-search" class="easyui-linkbutton" iconCls="icon-search" onclick="searchPatient();">查询</a>
							</div>
						</div>*/%>
						<div class="his-search-area">
							&nbsp;就诊时间: <input type="text" style="width:180px" id="dd" />
							&nbsp;患者姓名: <input class="easyui-textbox" style="width:100px;">
							&nbsp;科室: <select class="easyui-combobox" id="id_depNum" name="depNum" 
										style="width:130px"
										data-options="required:false,prompt:'请选择'"></select>
							&nbsp;<a id="btn-search" class="easyui-linkbutton" iconCls="icon-search" 
										onclick="searchPatient();">查询</a>
						</div>
					</div><!-- end 查询条件 -->
					<div id="id_history_parent"><table id="history_patient_list"></table></div>
				</div>
			</div>
		</div>
	</div>
	<div id="wait_diagnose">
		<a href="#" class="easyui-linkbutton"  iconCls="icon-ok" id="id_go_forward_diagnose" plain="true">检查化验</a>
	</div>
	<div id="be_in_diagnose">
		<a href="#" class="easyui-linkbutton"  iconCls="icon-ok" id="id_foo00001" plain="true">功能未确定</a>
	</div>
	<div id="tb_history_patient">
		<a href="#" class="easyui-linkbutton"  iconCls="icon-print" id="id_print" plain="true">打印</a>
	</div>
</body>
</html>